<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class NavSignupTemp extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // 收录记录
        Schema::create('nav_included', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('nav_id')->comment('栏目id')->default(0)->index();
            $table->integer('game_id')->comment('赛事id')->default(0)->index();            
            $table->integer('user_id')->default(0)->index();

            $table->integer('source_id')->comment('业务id')->default(0)->index();
            $table->tinyInteger('source_type')->default(0)->comment('业务类型；1所有人，2是报名');
            $table->text('temp_selects')->comment('模板选项');

            $table->integer('audit_user_id')->comment('审核人id');
            $table->dateTime('auditor_at')->comment('审核时间');
            $table->text('reason')->comment('不通过的备注原因');
            $table->text('auditor_remarks')->comment('审核时的备注');

            $table->smallInteger('status')->default(0)->comment('状态，0待审核，200已通过，-100未通过')->index();
            $table->tinyInteger('is_delete')->default(0)->comment('删除标识 1删除')->index();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
